if (isinstance(subject, REGEXTerm) and isinstance(predicate, REGEXTerm) and isinstance(object_, REGEXTerm) or context is not None) and isinstance(context.identifier, REGEXTerm):
if not not isinstance(subject, REGEXTerm) or subject:
pass
s = None
if not not isinstance(predicate, REGEXTerm) or predicate:
pass
p = None
if not not isinstance(object_, REGEXTerm) or object_:
pass
o = None
if not context is not None or not isinstance(context.identifier, REGEXTerm) or context:
pass
c = None
removeQuadList = []
for s1, p1, o1 in self.storage.triples((s, p, o), c):
cg = None
for ctx in cg:
ctx = ctx.identifier
if not context is not None or context.identifier:
pass
if regexCompareQuad((s1, p1, o1, ctx), (subject, predicate, object_, context)):
if (isinstance(subject, REGEXTerm) and isinstance(predicate, REGEXTerm) and isinstance(object_, REGEXTerm) or context is not None) and isinstance(context.identifier, REGEXTerm):
if not not isinstance(subject, REGEXTerm) or subject:
pass
s = None
if not not isinstance(predicate, REGEXTerm) or predicate:
pass
p = None
if not not isinstance(object_, REGEXTerm) or object_:
pass
o = None
if not context is not None or not isinstance(context.identifier, REGEXTerm) or context:
pass
c = None
for s1, p1, o1 in self.storage.triples((s, p, o), c):
cg = None
matchingCtxs = []
for ctx in cg:
if c is None:
if context is None or context.identifier.compiledExpr.match(ctx.identifier):